//
//  availableGamesModel.m
//  PhotoCircle
//
//  Created by wujungao on 12/25/15.
//  Copyright © 2015 wujungao. All rights reserved.
//

#import "availableGamesModel.h"

@implementation availableGamesModel

-(instancetype)initAvailableGamesModelWithDict:(NSDictionary *)dict{
    
    self=[super init];
    if(self){
        
        [self configModelWithDict:dict];
    }
    
    return self;
}

-(void)configModelWithDict:(NSDictionary *)dict{
    
    if(dict[@"uuid"] !=[NSNull null]){
        
        self.uuid=dict[@"uuid"];
    }
    
    if(dict[@"title"] !=[NSNull null]){
        
        self.title=dict[@"title"];
    }
    
    if(dict[@"image"] !=[NSNull null]){
        
        self.imageURL=dict[@"image"];
    }
    
    if(dict[@"category"] !=[NSNull null]){
        
        self.category=dict[@"category"];
    }
    
    if(dict[@"url"] !=[NSNull null]){
        
        self.url=dict[@"url"];
    }
}

@end
